#dm_lib_popup_mask {
    width: 100%;
    height: 100%;
    background: #000000;
    opacity: 0.4;
    z-index: 10000;
    position: fixed;
    top: 0;
    left: 0;
    padding: 0;
    margin: 0;
    animation: dm_lib_anim_opacity 0.3s;
    -moz-animation: dm_lib_anim_opacity 0.3s;
    -webkit-animation: dm_lib_anim_opacity 0.3s;
}

#dm_lib_popup_container {
    width: 80%;
    background: #ffffff;
    z-index: 10001;
    position: fixed;
    left: 10%;
    border-radius: 6px;
    padding: 0;
    margin: 0;
    animation: dm_lib_anim_scale 0.3s;
    -moz-animation: dm_lib_anim_scale 0.3s;
    -webkit-animation: dm_lib_anim_scale 0.3s;
}

#dm_lib_popup_title {
    line-height: 24px;
    font-size: 16px;
    text-align: center;
    color: #333;
    padding: 8px;
    margin-top: 12px;
    /*border-bottom: 1px solid #ccc;*/
}

#dm_lib_popup_msg {
    font-size: 14px;
    color: #7f7f7f;
    padding: 8px;
    margin: 0;
}

#dm_lib_popup_button_container {
    width: 100%;
    height: 40px;
}

.dm_lib_popup_button {
    line-height: 40px;
    font-size: 16px;
    text-align: center;
    color: #333;
    padding: 0px 8px;
    box-sizing:border-box;
    -moz-box-sizing:border-box; /* Firefox */
    -webkit-box-sizing:border-box; /* Safari */
    width:100%;
    float:right;
}

.dm_lib_popup_button:active {
    background: #ccc;
}

.dm_lib_popup_button.dm_lib_confirm {
    width: 50%;
    border-left: 1px solid #ccc;
}

.dm_lib_popup_button.dm_lib_cancel {
    width: 50%;
}

.dm_lib_divider_top {
    border-top: 1px solid #ccc;
}

@keyframes dm_lib_anim_opacity {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.4;
    }
}

@-webkit-keyframes dm_lib_anim_scale {
    0% {
        -moz-transform: scale(0);
        -webkit-transform: scale(0);
        -o-transform: scale(0);
        transform: scale(0);
    }
    70% {
        -moz-transform: scale(1.1);
        -webkit-transform: scale(1.1);
        -o-transform: scale(1.1);
        transform: scale(1.1);
    }
    100% {
        -moz-transform: scale(1);
        -webkit-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }
}